#配置文件


login_url = "https://login.taobao.com/member/login.jhtml?sub=true&style=miniall&from=subway&full_redirect=true&newMini2=true&tpl_redirect_url=//subway.simba.taobao.com/entry/login.htm"

js1 = '''() =>{
               Object.defineProperties(navigator,{
                 webdriver:{
                   get: () => undefined
                 }
               })
            }'''


# MySql 配置信息
# host_ = "47.99.158.176"  # 主机
host = "192.168.0.101"
port = 8485 # 数据库端口
username = "root" # 用户名
pwd = "123456"  # 密码
dbName = "yunfan_dev"  # 数据库名

#
# # 打开数据库连接
# # db = pymysql.connect(host="47.99.158.176",  user="root", passwd="123456", db="yunfan_dev", charset='utf8')
# db = pymysql.connect(host=host, port=port, user=username, passwd=pwd, db=dbName, charset='utf8')
# # 通过cursor方法获取操作游标
# cursor = db.cursor()
# # sql语句
# sql = "SELECT VERSION()"
# # sql = "select * from test0811"
# # 执行sql语句
# cursor.execute(sql)
# # 使用fetchone方法获取一个查询结果集
# data = cursor.fetchone()
# # 输出结果集
# print("db version:%s" % data)
# # 关闭数据库连接
# db.close()